In Linux shell scripting, direct comparison operators like -eq, -ne, -gt, -lt, -ge, and -le are designed for integer comparisons. To compare decimal numbers (floating-point numbers), you need to use external tools that support floating-point arithmetic. Here are common methods for comparing decimal numbers in a Linux shell script: 1. Using bc (arbitrary precision calculator): bc is a powerful tool for performing calculations with arbitrary precision, including decimal comparisons. Código num1=2.5 num2=1.7 if (( $(echo "$num1 > $num2" | bc -l) )); then echo "$num1 is greater than $num2" else echo "$num1 is not greater than $num2" fi In this example: echo "$num1 > $num2" sends the comparison expression to bc. bc -l loads the standard math library, enabling floating-point operations. The result of the comparison (1 for true, 0 for false) is then used in the (( )) arithmetic expansion for evaluation.